export default {
  namespaced: true,
  state: {
    user: {}
  },
  mutations: {
    setUser (state, { user = {} }) {
      state.user = user
    },
    /**
     * @description 隐藏
     * @param {Object} state state
     */
    clear (state) {
      state.user = {}
    }
  }
}
